package com.onetoall.yjt;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

/**
 * Created by DELL on 2017/2/4.
 */

public class PhoneNoActivity extends Activity {

    private TextView tvPhone;
    private PhoneInfo phoneInfo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_phoneno);
        tvPhone = (TextView) findViewById(R.id.tv_phone);
        phoneInfo = new PhoneInfo(this);
    }
    public void click(View view){
        tvPhone.setText("手机号码："+phoneInfo.getNativePhoneNumber()+"\n"+phoneInfo.getPhoneInfo()+"\n"+phoneInfo.getProvidersName());
    }
}
